<?php
require_once('model/model.php');
require_once('model/ParamInOut.php');
require_once('ViewConfig.php');

	$md = new Model();
	$data = $md->GetHotProduct(0,30);
	
	for($i=0;$i<count($data);$i++)
	{
		 $obj = new GetProductResponse();
		 $obj = $data[$i];
		 echo "<div class='ja-innerdiv clearfix' align='center'>";
    	 echo "<a href='?idsp=".$obj->IdProduct."' title='Sample link'>";
    	 echo "<img src='"._PathImage.$obj->UrlIamge."' alt='' width='120' height='100' />";
    	 echo "<span class='title'>".$obj->ProductName."</span></a>";
    	 echo "</div>";
	}
	
?>

    